[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Joel via ntg-context
termining a page break - it does so by the insert mechanism - when floats can't be placed they also become inserts (top and bottom) - when there are inserts in inserts th eproblem becomes more complex (so notes inside floats) - in traditional tex deeply burried inserts disappearm less so in lmtx Th

[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Hans Hagen via ntg-context
notes inside floats) - in traditional tex deeply burried inserts disappearm less so in lmtx There are things that are hard to get right. This works: \startpostponing \startplacefigure[location=here,title={test \footnote{oeps 1}}] \blackrule[width=1tw] here \footnote{hello

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
a similar effect as \starttextdisplay. \usemodule[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Henning Hraban Ramm
[visual] \setupfloat[figure][location=left] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords

[NTG-context] Re: what about "textdisplay"?

2024-04-01 Thread Wolfgang Schuster
] \starttext \fakewords{10}{20} \startlinecorrection \fakeimage{4cm}{3cm}{6cm}{4cm} \stoplinecorrection \fakewords{10}{20} \blank[2*line] \fakewords{10}{20} \startplacefigure[location={force,none}] \fakeimage{4cm}{3cm}{6cm}{4cm} \stopplacefigure \fakewords{10}{20} \blank[2*line] \fakewords{10}{20

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
bachotex:naglowek:columns \defineframedtext [Dane] \setupframedtext [Dane] [width=18cm , align=normal, frame=no] \definenarrower [Streszczenia] [2*middle] \startplacefigure [location={here,none}] {\startDane {\tfa

[NTG-context] Re: Text in Margin

2024-02-19 Thread Henning Hraban Ramm
\inmargin, \inouter etc. Additional to Wolfgang’s suggestions: If you need sidefloats that cover not only the margin but should decrease the text width, you can move sidefloats into the margin like: \startplacefigure[title={},location=outer] \offset[rightoffset=-\marginwidth]{\externalfigure[cow

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
ner}{\flushnextbox}% \else \flushnextbox \fi} \hbox} \setupfloat[table][command=\FloatTableALignment] \setupfloat[figure][default=rightmargin] \starttext \inright{Lorem ipsum \unknown}\samplefile{lorem} \startplacefigure \externalfigure[dummy][width=\rightmarginwi

[NTG-context] Re: \startcolumns and \startcolumnset

2024-02-08 Thread Otared Kavian
:22, Jeong Dal via ntg-context <ntg-context@ntg.nl> wrote:Dear all,I have a little problem to use “columns” in the following example.If I use “\startcolumnset”, then I have the following problems: 1. The figures is aligned left even though I use \startplacefigure[]. 2. In the second column, the

[NTG-context] \startcolumns and \startcolumnset

2024-02-08 Thread Jeong Dal via ntg-context
Dear all,I have a little problem to use “columns” in the following example.If I use “\startcolumnset”, then I have the following problems: 1. The figures is aligned left even though I use \startplacefigure[]. 2. In the second column, the first item located at the end of the page.However, \vfill

[NTG-context] font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
rph-chk.lua:97> ...-10/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1680: in function <...-10/tex/texmf-context/tex/context/base/mkxl/grph-inc.lmt:1665> (...tail calls...) 506 \startsubsection[title=Schriftwahl] … 513 514 \startplacefigure[title={Beispi

[NTG-context] Width of captions and notes in outer margin not correct on even pages

2024-01-09 Thread Milan cel Mare via ntg-context
ts} \input knuth Some more stuff\inouter{Some multi-line text to be placed in the outer margin to check whether it is positioned correctly.} to read\inouter{Another multi-line text to be placed in the outer margin to check whether it is positioned correctly.}. \startplacefigure[title={A lengthy caption

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
    -outname \externalfilteroutputfile},     output=\externalfilterbasefile.pdf,     cache=yes,     readcommand=\ReadImage,] \define[1]\ReadImage{\externalfigure[#1]} \starttext    Testing if we can include an asymptote image    \startplacefigure[location={here}, title={An Asymptote figure}] \startASY

[NTG-context] Re: error: Control sequence expected instead of undefined

2023-12-25 Thread Willi Egger
* > \starttext > \in{figure}[fig:kruskal1] is my point. > > \startplacefigure[location=,reference=fig:kruskal1,title={}] > \externalfigure[cow][width=.5\makeupwidth] > \stopplacefigure > \stoptext > % > __

[NTG-context] error: Control sequence expected instead of undefined

2023-12-25 Thread Jeong Dal via ntg-context
%%%* \starttext \in{figure}[fig:kruskal1] is my point. \startplacefigure[location=,reference=fig:kruskal1,title={}] \externalfigure[cow][width=.5\makeupwidth] \stopplacefigure \stoptext %___ If your

[NTG-context] Re: \placefigure[location=here...] problem

2023-12-09 Thread Wolfgang Schuster
on the next page one after the other. Can anyone suggest what I could be doing wrong? Without a proper example it's difficult to give an answer. Do I need to increase the buffer? how? This is what I have used to place each figure \startplacefigure[location=here,reference=fig:blah

[NTG-context] \placefigure[location=here...] problem

2023-12-09 Thread anton . chigurh
could be doing wrong? Do I need to increase the buffer? how? This is what I have used to place each figure \startplacefigure[location=here,reference=fig:blah][]{} \externalfigure[blah.jpeg][scale=300] \stopplacefigure

[NTG-context] externalfigure regression?

2023-12-03 Thread Thangalin
file extension." current version: 2023.09.26 18:19 Code: % SOT \starttext \startplacefigure \externalfigure[https://placekitten.com/408/287][method=auto] \stopplacefigure \stoptext % EOT Expected: Cute kitten photo. Actual: Error. Is this a regression? Or has the syntax changed (stale

[NTG-context] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual they should work. Hraban \setuppapersize[A5,landscape] \useMPlibrary[dum] \definecolumnset[Two][n=2] \starttext \startcolumnset[Two] \dorecurse{5}{1\recurselevel\samplefile{lorem}\par} \startplacefigure[location=page

[NTG-context] textwide float too wide for text width

2023-09-08 Thread Henning Hraban Ramm
Hi, a current observation: I have some floats with text wide images like: \startplacefigure[location=top] \externalfigure[dummy][width=\textwidth] \stopplacefigure These were moved to the last page until I decreased the width minimally (by 0.1 mm). So I guess there’s a rounding error

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
[\xmlfilter{#1}{./url('xlink:href')}] \stopxmlsetups \startxmlsetups xml:link https://uv-v4.netlify.app/\#?manifest=\xmlfilter{#1}{./url('xlink:href')} \stopxmlsetups \startxmlsetups xml:fig \startplacefigure[title=Test] \startalignment[center

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
seccio:problemes-de-fraccions}] 22 23 \subject{Preguntes} 24 25 >> \startexercici[reference=exercici:problemes-de-fraccions-1, title={oli}] Calculeu quina part del dipòsit queda buida, sabent que l'aigua ocupa $2/5$ del recipient i l'oli, $1/4$ (vegeu figura~\in[fig:oli-aigua-diposit]

[NTG-context] Re: Suppress label in captions without suppressing number

2023-07-20 Thread Hans Hagen
? \definefloat[NLfigure][figure] \setuplabeltext[en][NLfigure=] \starttext \samplefile{ward} \startplacefigure[title={oeps}] \stopplacefigure \samplefile{tufte} \startplaceNLfigure[title={oeps}] \stopplaceNLfigure \samplefile{tufte} \stoptext

[NTG-context] Re: new upload

2023-07-10 Thread Hans Hagen
} \dorecurse{4}{\samplefile{tufte}\par} } \stoptext \stopbuffer \startplacefigure[location=here,reference=fig:vz-1,title={Cheating with vertical expansion: \type {[vz=no]}.}] \startcombination[4*1] {\typesetbuffer[vz-1][width=\combinationwidth,page=1,frame=on]} {} {\typesetbuffer[vz-1

[NTG-context] floatcombinations seem to not work correctly after lmtx update

2023-06-19 Thread Gerion Entrup via ntg-context
] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a, prefix=no, headseparator={)}] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext test sdlkf jlsdjf lksjdf \startplacefigure[title=Test] \startfloatcombination[nx=3

Re: [NTG-context] Moving up a Figure

2023-06-06 Thread Jeroen via ntg-context
This one works very nicely, though the movesidefloat gives nicely complete control. \samplefile{tufte} \startplacefigure [location={right,halfline}, number=no] \externalfigure[autocad.png][width=0.6\textwidth] \stopplacefigure \samplefile{tufte} Below the figure there is quite some space

Re: [NTG-context] Moving up a Figure

2023-06-05 Thread Aditya Mahajan via ntg-context
ere a > >> more granular method? > > Not that I know of, but maybe {right,halfline} will do? > > Maybe try "location={right,-1*hang}," For finer control, you can use `\movesidefloat`: \movesidefloat[x=-..., y

Re: [NTG-context] Moving up a Figure

2023-06-04 Thread Jeroen via ntg-context
gt; With the following example, the figure is placed a little lower than the > first text line. The top of the figure is at about the middle of the first > line. Is there a way to move-up the figure slightly to align it with the > top of the text line? > > > > \useMPlibrar

Re: [NTG-context] Moving up a Figure

2023-06-03 Thread Mikael Sundqvist via ntg-context
tly to align it with the top > of the text line? > > \useMPlibrary[dum] > > \starttext > > \startplacefigure > [number=no, >location=right] > \externalfigure[dummy] > \stopplacefigure > > \samplefile{tufte} > > \stoptext May

[NTG-context] Moving up a Figure

2023-06-03 Thread Jeroen via ntg-context
With the following example, the figure is placed a little lower than the first text line. The top of the figure is at about the middle of the first line. Is there a way to move-up the figure slightly to align it with the top of the text line? \useMPlibrary[dum] \starttext \startplacefigure

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Henning Hraban Ramm via ntg-context
Am 29.05.23 um 16:47 schrieb Hans Hagen via ntg-context: Is this also the right approach to check for the current page within a float placement? Like \startplacefigure[]  \dontleavehmode\signalrightpage % necessary?  \doifelserightpage{RIGHT}{LEFT}  \doifelseoddpage  {ODD  }{EVEN

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Hans Hagen via ntg-context
test will work ok. The odd/even test works as expected when you're in the page builder (wrapping up the page). Is this also the right approach to check for the current page within a float placement? Like \startplacefigure[] \dontleavehmode\signalrightpage % necessary

Re: [NTG-context] \doifelseoddpage not working as expected

2023-05-29 Thread Henning Hraban Ramm via ntg-context
you're in the page builder (wrapping up the page). Is this also the right approach to check for the current page within a float placement? Like \startplacefigure[] \dontleavehmode\signalrightpage % necessary? \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
I found a MWE that shows the problem: """ \setuppapersize[C5] \showframe \starttext \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.75\textheight]{TEST} \stopplacefigure \dorecurse{4}{\section{Tufte \recurselevel} \samplefile{tuf

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
it in a simple example like this: """ \starttext \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could

[NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
t \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could cause this behavior? For what shoul

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-31 Thread Willi Egger via ntg-context
title=Figures B] >>\placelistofBfigures >> \stopsubject >> \stoptitle >> >> \startpart[title=Part ONE] >> \startchapter[title={Chapter one in part one}] %les21 >> >> \startplaceAfigure >> [location=left, >> reference=fig:dumA, >>

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Alan Braslau via ntg-context
artplaceAfigure > [location=left, >reference=fig:dumA, >title={Dummy A}] > {\externalfigure[dummy][width=0.6\textwidth]} > \stopplaceAfigure > > \startplacefigure > [location=left, >reference=fig:dumB, >title={Dummy B}] &g

[NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Willi Egger via ntg-context
]} \stopplaceAfigure \startplacefigure [location=left, reference=fig:dumB, title={Dummy B}] {\externalfigure[dummy][width=0.6\textwidth]} \stopplacefigure \startsection[title=Section A] \startplaceAfigure [location=left, reference=fig:dumC

[NTG-context] How to prefix the list of figures with part number?

2023-03-25 Thread Willi Egger via ntg-context
] \stopsubject \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \startplacefigure [location=middle, title=Cow 1

Re: [NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-08 Thread Hans Hagen via ntg-context
}{\resetcounter[subfigure]} \starttext \startplacefigure[title=Test] \startfloatcombination[nx=1, ny=2] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startfloatcombination[nx=2, ny=1] \startplacesubfigure

[NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-07 Thread Gerion Entrup via ntg-context
://tex.stackexchange.com/a/502903): \useMPlibrary[dum] \setupcombinations[alternative=text] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext \startplacefigure[title=Test

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:figure \startplacefigure[title={Test},location={force,split}] \xmlflush{#1} \stopplacefigure \stopxmlsetups \startxmlsetups xml:table-wrap \startpostponingnotes \xmlflush{#1} \stoppostponingnotes \stopxmlsetups

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:figure \startplacefigure[title={Test},location={force,split}] \xmlflush{#1} \stopplacefigure \stopxmlsetups

[NTG-context] \startnarrow seems to have no effect for tabulate

2023-02-22 Thread Denis Maier via ntg-context
Hi, I need to have a table set with tabulate centered and a bit narrower. But it seems that \startnarrow has no effect on the tabulate. Am I missing something ? Is there a better way to achieve the same thing? Best, Denis \starttext \showframe \startplacefigure[location=force,number

Re: [NTG-context] MP figure continuation

2023-01-06 Thread Mikael Sundqvist via ntg-context
\startuseMPgraphic{vanderwaerden012} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(2,x)+vdw(1,x)+vdw(0,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden0123} \includeMPgraphic{vanderwaerdenbas} draw function(1,&qu

Re: [NTG-context] What to do when ConTeXt not revealing the error details?

2022-10-30 Thread Joel via ntg-context
or a \startplacefigure with no \stopplacefigure. This freqeuntly doesn’t cause an error because the engine is happily packing my entire book into a margin figure. See if there something you should have stopped near the place where things go bad? Good luck! Gavin > On Oct 30, 2022, at 7:46

Re: [NTG-context] What to do when ConTeXt not revealing the error details?

2022-10-30 Thread Gavin via ntg-context
Hi Joel, I get this error frequently when I forget to stop an environment, for example a \startsection with no \stopsection or a \startplacefigure with no \stopplacefigure. This freqeuntly doesn’t cause an error because the engine is happily packing my entire book into a margin figure. See

[NTG-context] floats disturb grid setting

2022-10-03 Thread Henning Hraban Ramm via ntg-context
As soon as I use floats, text isn’t typeset on the grid any more: \setuppaper[A5] \setuplayout[grid=yes] \showframe\showgrid \setupexternalfigure[ location={local,global,default}, ] \starttext \samplefile{lorem} \startplacefigure[location=left,title=left]% \externalfigure[mill][width=.25

Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-07-29 Thread Jeong Dal via ntg-context
[location={default,local,global}] \starttext \startplacefigure[location=right,] \externalfigure[cow][width=.3\makeupwidth] \stopplacefigure \startformula U(f,P) \alignhere = f(2,2)\Delta A_{11}+f(2,3)\Delta A_{12}\breakhere \skiphere[1em] +f(3,2)\Delta A_{21}+f(3,3)\Delta A_{22} \breakhere

Re: [NTG-context] Workshop at FrOSCon

2022-07-09 Thread Henning Hraban Ramm via ntg-context
tell them to forget everything they believe to know about TeX ;P – Layout, i.e. \setuppapersize, \setuplayout and \showlayout – Structure, i.e. \startchapter, \startitemize – Images & Floats, i.e. \externalfigure, \startplacefigure Project structure makes sense if you have more than one

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
finition of \includesvgbuffer, here is a simpler example illustrating the issue: \starttext \startplacefigure[location=here, title={Test}] \dontleavehmode\begingroup \startMPcode draw fullcircle scaled 2cm; \stopMPcode\endgroup \stopplacefigure \stoptext

Re: [NTG-context] SVG text alignment issue

2022-06-28 Thread Aditya Mahajan via ntg-context
font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">16p13.3 > > \stopbuffer > > \starttext >\placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} > \stoptext > % EOF This has nothing to do with SVG. Looking at the definitio

Re: [NTG-context] Foonotes in Captions ... again

2022-06-16 Thread Denis Maier via ntg-context
> \def\insert##1\bgroup##2\egroup{ > > \normalexpanded{ > > \noexpand\save_footnote_data > > {\cldcontext{userdata.input_order}} > > } > > \normalinsert##1{

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Denis Maier via ntg-context
Maier via ntg-context wrote: Hi, I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won’t use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asd

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Denis Maier via ntg-context
nly the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title={My caption with a long footnote.\footnote{\input ward}}] \externalfigure[cow.pdf] \stopplacefigu

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread jbf via ntg-context
caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title={My caption with a long footnote.\footnote{\input ward}}] \externalfigure[cow.pdf] \stopplacefigure \stoptext

Re: [NTG-context] Foonotes in Captions ... again

2022-06-16 Thread Denis Maier via ntg-context
> > \old_footnote{#1} > \endgroup > \stoptexdefinition > > \protect > > % Original Example > > \starttext > > \footnote{asdf} \footnote{asdf} \footnote{asdf} > > \input ward > >

[NTG-context] Footnotes in captions -> "inherit" textwidth from float

2022-06-16 Thread Denis Maier via ntg-context
Hi, I think I've ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won't use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title

Re: [NTG-context] Foonotes in Captions ... again

2022-06-15 Thread Max Chernoff via ntg-context
on \protect % Original Example \starttext \footnote{asdf} \footnote{asdf} \footnote{asdf} \input ward \startplacefigure[title={asdfasdf\footnote{test 1}}] \externalfigure[cow.pdf] \stopplacefigure \footnote{asdf} \footnote{asdf} \footnote{asdf} \startpla

[NTG-context] Foonotes in Captions ... again

2022-06-15 Thread Denis Maier via ntg-context
} \footnote{asdf} \footnote{asdf} \input ward \startplacefigure[title={asdfasdf\footnote{test 1}}] \externalfigure[cow.pdf] \stopplacefigure \footnote{asdf} \footnote{asdf} \footnote{asdf} \startplacefigure[title={asdfasdf\footnote{test 2}}] \externalfigure[cow.pdf][height=10cm] \stopplacefigure

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Richard Mahoney via ntg-context
Bruce, I tend to do something such as the following: \startplacefigure[reference={fig:0007},location={here},title={{\it Vīkṣya}, 5b},list={Ch.\ {\sc ix}\TI {\it Vīkṣya}, 5b}] \externalfigure[plates/01-09/01-09-07- c.jpg][scale=1000,frame=off,equalwidth=325pt] {{\NI}{\tfx \copyright\ 2012

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Henning Hraban Ramm via ntg-context
. \placefigure{A picture of a cow. Image of a cow that may or may not be under copyright anymore.}{\externalfigure[cow][height=6cm]} then the copyright bit will appear in the Table of Figures which I don't really want to happen. Is there a way to truncate this? Using \startplacefigure[title={complete

Re: [NTG-context] Indented Paragraph After Float?

2022-02-07 Thread śrīrāma via ntg-context
agraph. A fix is to use \indentation after \stopplacefigure. \setupfloat[figure][indentnext=yes] \starttext %\setupbodyfont[11pt] \setupindenting[yes, medium] \input ward \endgraf \startplacefigure[title=A Figure,location={page,auto}] \startframedtext \input wa

[NTG-context] Indented Paragraph After Float?

2022-02-07 Thread Michael Urban via ntg-context
As always, it is hard to tell whether this is my stupidity, the wrong version of ConText, or a bug. \setupfloat[figure][indentnext=yes] \starttext %\setupbodyfont[11pt] \setupindenting[yes, medium] \input ward \startplacefigure[title=A Figure,location=page] \startframedtext \input ward.tex

Re: [NTG-context] Regular online meet-up

2022-02-06 Thread Henning Hraban Ramm via ntg-context
Hi Alain, in my current project I need the same. I use floats and move the externalfigure with \offset; can show you on Tuesday. e.g. \startplacefigure[title={},location=left]% or outer... \offset[topoffset=-1em,leftoffset=-20mm]{% % it would be nice to have outeroffset/inneroffset

Re: [NTG-context] Defining new float types fails in LMTX

2021-12-10 Thread Marco Patzer via ntg-context
On Fri, 10 Dec 2021 17:01:26 +0100 Hans Hagen wrote: > no example code The MWE was included in the OP on 2021-10-30. But here it is again: \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefig

[NTG-context] Defining new float types fails in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
: return code: 256 \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefigure [title=Foo] \framed{Foo} \stopplacefigure \startplacefoo [title=Bar] \framed{Bar} \stopplacefoo \stoptext Marco LMTX

[NTG-context] location=outer causes bad page break in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
tempor \startplacefigure [location=outer] \externalfigure \stopplacefigure \samplefile{knuth} \stoptext Marco LMTX 2021.11.26 11:38 ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
top] \starttext \samplefile{knuth} \startplacefigure %% [location=top] %% default \externalfigure \stopplacefigure %% Goal here: turn off the caption, not influence the default placement %% needs to be adapted when the global style changes %% \startplacefigure [location=none] %% fa

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Henning Hraban Ramm via ntg-context
Am 30.11.21 um 12:16 schrieb Marco Patzer via ntg-context: Hi! Today I discovered that the parameter order in float location matters: \starttext \samplefile{knuth} \startplacefigure [location={top,none}] %% works: float is at the top \externalfigure \stopplacefigure

[NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
Hi! Today I discovered that the parameter order in float location matters: \starttext \samplefile{knuth} \startplacefigure [location={top,none}] %% works: float is at the top \externalfigure \stopplacefigure \startplacefigure [location={none,top}] %% top is ignored here

[NTG-context] Bad linebreak in figure caption

2021-11-29 Thread Marco Patzer via ntg-context
Hi! The caption "FOO" runs into the right figure's caption: \setuplayout [width=18.4cm] \setuptolerance [verytolerant, stretch] %% even with stretch \starttext \startplacefigure \startfloatcombination \startplacefigure [title=Unexpectedly unnecessary FOO-BA

Re: [NTG-context] Automatic counting groupsuffix for subfigures

2021-11-25 Thread Hans Hagen via ntg-context
On 11/24/2021 10:19 AM, Marco Patzer via ntg-context wrote: Hi! I'd like to use subfigure numbering for floats. This works: \useMPlibrary [dum] \starttext \startplacefigure [location=none] \startfloatcombination [nx=2] \startplacefigure [title=Left, reference=ref:left, group=one

[NTG-context] Automatic counting groupsuffix for subfigures

2021-11-24 Thread Marco Patzer via ntg-context
Hi! I'd like to use subfigure numbering for floats. This works: \useMPlibrary [dum] \starttext \startplacefigure [location=none] \startfloatcombination [nx=2] \startplacefigure [title=Left, reference=ref:left, group=one, groupsuffix=a] \externalfigure \stopplacefigure

Re: [NTG-context] Paragraph break over pages with hanging float

2021-11-15 Thread Adam Reviczky via ntg-context
between the > > paragraph start and the placement of the float) with a hanging float > > further down the paragraph? > > > > MWE: > > > > \starttext > > \input lorem > > \blank[20*line] > > > > % commenting out the hanging float allows paragraph brea

Re: [NTG-context] Paragraph break over pages with hanging float

2021-11-15 Thread Hans Hagen via ntg-context
] % commenting out the hanging float allows paragraph break \startplacefigure[location={right,15*hang}] \framed[width=3cm,height=2cm]{graphic} \stopplacefigure \dorecurse{10}{\input lorem} \stoptext When I remove the hanging float, the paragraph is broken down at the first pagebreak. With the float

[NTG-context] Paragraph break over pages with hanging float

2021-11-14 Thread Adam Reviczky via ntg-context
Hi, Is there a way to allow a paragraph to break over two pages (between the paragraph start and the placement of the float) with a hanging float further down the paragraph? MWE: \starttext \input lorem \blank[20*line] % commenting out the hanging float allows paragraph break \startplacefigure

Re: [NTG-context] \externafigure and \at do not work together

2021-11-01 Thread Wolfgang Schuster via ntg-context
\startplacefigure[reference=clock] \externalfigure[clock.jpg] \stopplacefigure In figure \at[clock] you see a clock \page In figure \at[clock] you see a clock. Or better: in \in{Figure}[clock] you see a clock. \stoptext With \in you the value of the float counter while \at shows the page where

Re: [NTG-context] \externafigure and \at do not work together

2021-10-31 Thread Otared Kavian via ntg-context
Hi, Your example has two issues, since you invoke \externalfigure before \starttext, and moreover you don’t use the place figure mechanism. The following gives the result you want: \setupinteraction[state=start] \starttext \startplacefigure[reference=clock] \externalfigure[clock.jpg

Re: [NTG-context] ConTeXt's equivalent of standalone class

2021-10-02 Thread Gavin via ntg-context
fers to make the figures: \startbuffer[MyTikZFigure] % TikZ code here \stopbuffer \startplacefigure[reference=MyFig, title={This is the figure’s caption}] \typesetbuffer[starttikz, MyTikZFigure,stoptikz] \stopplacefigure Following a suggestion from Hans, I made two buffer

[NTG-context] prefixstarter in captions

2021-08-28 Thread Adam Reviczky via ntg-context
C.1.S.1". MWE: \setupfloatcaption[figure][number=yes,way=bytext,prefix=yes,prefixstarter={C.},numberstarter={S.}] \starttext \startchapter[title={Cow}] \startplacefigure[title={Custom caption}] \externalfigure[cow] \stopplacefigure \stopchapter \stoptext Not sure whether prefixstarter is the int

Re: [NTG-context] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Richard Mahoney via ntg-context
To: Richard Mahoney , mailing list for ConTeXt users Subject: Re: [NTG-context] Control of Titles appearing in \completelistoftables and \completelistoffigures Date: Wed, 25 Aug 2021 08:48:24 +0200 Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.0 Hi, There is \startplacefigure / \startplacetable

Re: [NTG-context] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Taco Hoekwater via ntg-context
Hi, There is \startplacefigure / \startplacetable , which has a ‘list’ key https://wiki.contextgarden.net/Command/_startplacefloat Best wishes, Taco > On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context > wrote: > > List, > > I've been wondering if there is some s

Re: [NTG-context] another MetaPost question (this time on ConTeXt->MetaPost color transfer)

2021-07-22 Thread Rudd, Kevin
ed fill t withcolor p % new (and old) draw s withpen pencircle scaled 5pt withcolor c; enddef; \stopMPdefinitions \starttext \definespotcolor[Thin:orange][orange][p=1,a=normal,t=0.5] \color[orange]{hello} \startalignment[center]

[NTG-context] another MetaPost question (this time on ConTeXt->MetaPost

2021-07-22 Thread Rudd, Kevin
draw s withpen pencircle scaled 5pt withcolor c; enddef; \stopMPdefinitions \starttext \definespotcolor[Thin:orange][orange][p=1,a=normal,t=0.5] \color[orange]{hello} \startalignment[center] \startplacefigure \startMPcode Test [ prefix = "Thin", color = &q

[NTG-context] Getting the local float reference within a float and reuse (?) it later (\somelocalfloat?)

2021-07-22 Thread Benjamin Buchmuller
pic]{Topic} \startplacefigure [ title={Awesome figure. Image credits in \about[sec:credits].}, reference=fig:awesome, ] \begincredits \in{Figure}[fig:awesome] in \in{Section}[sec:topic] was not created by me. \endcredits \stopplacefigure \section[sec:credits]{Appendix} \usebloc

[NTG-context] MP keyword function: string parameters no longer accept string variables directly

2021-07-21 Thread Rudd, Kevin
1 int: english/english \startMPdefinitions presetparameters "parameters_Test" [ ] def Test = applyparameters "parameters_Test" "do_Test" enddef; def do_Test = pushparameters "parameters_Test"; show hasparameter "color&

[NTG-context] MP boxes: boxjoin not recognized?

2021-07-21 Thread Rudd, Kevin
ter the expression that is shown above this % error message, so I guess I'll just ignore it and carry on. % metafun > log > % metapost> trace >); boxit.a("a"); boxit.bb("bb"); boxit.ccc("ccc"); drawboxed(a,bb,ccc); ; % metapost>

Re: [NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Gavin
]% Lots of setup can go here! \startTEXpage \starttikzpicture \stopbuffer \startbuffer[stoptikz] \stoptikzpicture \stopTEXpage \stopbuffer \define[2]\marginTikZ{ \startplacefigure[location=margin, reference=fig:#1, title={#2}] \typesetbuffer[starttikz,#1,stoptikz

Re: [NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Hans Hagen
ffer[BlueCircle] \draw [thick,blue] (0,0) circle (1.5cm)node{Ti{\it k}Z!}; \stopbuffer \startplacefigure[location=margin,reference=fig:BlueCircle,title={Example A.}] \typesetbuffer[starttikz,BlueCircle,stoptikz] \stopplacefigure \startplacefigure[location=margin,reference=fig:BlueCircle,t

Re: [NTG-context] combinations

2021-05-22 Thread Willi Egger
ggestion: >> You have to set a caption >> https://wiki.contextgarden.net/Command/startcombination >> That worked fine for me: >> \startplacefigure[location=here] >> \setupcombination[distance=0mm,after=] >> {\startcombination[2*1] >> {\externalfigure[res1

Re: [NTG-context] combinations

2021-05-14 Thread Hans Hagen
On 5/14/2021 6:30 AM, Benny Schurig wrote: Hi Julian, for me first reply ever with a suggestion: You have to set a caption https://wiki.contextgarden.net/Command/startcombination That worked fine for me: \startplacefigure[location=here]   \setupcombination[distance=0mm,after

Re: [NTG-context] combinations

2021-05-13 Thread Benny Schurig
Hi Julian, for me first reply ever with a suggestion: You have to set a caption https://wiki.contextgarden.net/Command/startcombination That worked fine for me: \startplacefigure[location=here] \setupcombination[distance=0mm,after=] {\startcombination[2*1] {\externalfigure[res1.jpg

[NTG-context] combinations

2021-05-13 Thread jbf
Hi list, The following MWE is giving me two photos under each other, not beside each. What am I doing wrong? Julian \startplacefigure[location=here] \setupcombination[distance=0mm,after=] {\startcombination[2*1] {\externalfigure[res1.jpg][width=.4\textwidth]} {\externalfigure[res2.jpg

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Hans Hagen
tance=4mm,   location=righthanging] \startbuffer[caption] \dorecurse{60}{very long caption } \stopbuffer \starttext \startplacefigure[title={\getbuffer[caption]}] \externalfigure[cow][height=40mm,width=80mm] \stopplacefigure \stoptext Thank you,

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Jano Kula
ghthanging] > > \startbuffer[caption] > \dorecurse{60}{very long caption } > \stopbuffer > > \starttext > \startplacefigure[title={\getbuffer[caption]}] > \externalfigure[cow][height=40mm,width=80mm] > \stopplacefigure > \stoptext > > Thank you, > Jano >

[NTG-context] very long hanging caption

2021-05-02 Thread Jano Kula
={nothyphenated,flushleft}, distance=4mm, location=righthanging] \startbuffer[caption] \dorecurse{60}{very long caption } \stopbuffer \starttext \startplacefigure[title={\getbuffer[caption]}] \externalfigure[cow][height=40mm,width=80mm] \stopplacefigure \stoptext Thank you, Jano

Re: [NTG-context] Floating objects next to text mess up paragraph spacing

2021-04-01 Thread Hans Hagen
is can be seen quite clearly in the output of the following example: \setupbodyfont[dejavu, serif, 12pt] \starttext   \samplefile{lorem}   \startplacefigure[location={right, none}]     \framed[width=3cm, height=2cm]{graphic}   \stopplacefigure   \samplefile{lorem}   \samplefile{lor

[NTG-context] Floating objects next to text mess up paragraph spacing

2021-04-01 Thread Daniel Barker
put of the following example: \setupbodyfont[dejavu, serif, 12pt] \starttext \samplefile{lorem} \startplacefigure[location={right, none}] \framed[width=3cm, height=2cm]{graphic} \stopplacefigure \samplefile{lorem} \samplefile{lorem} \stoptext I am using the curre

  1   2   3   4   5   6   >